<?php

/**
 * @author PeoneEr
 *  Упрощение выбора статуса
 * 
 */
class Membership {

    /** @var string $_member */
    public static $_member = NULL;

    public static function switchMembership($membership) {
        /**
         * @param $membership string
         * @var string $member
         * @return string $member;
         */
        if ($membership == '1') {
            self::$_member = "премиум";
        } else if ($membership == '2') {
            self::$_member = "VIP";
        } else {
            self::$_member = "обычный аккаунт";
        }
        return self::$_member;
    }

}

?>
